import React from 'react';
import {Button, message, Result} from 'antd';
import {useNavigate} from "react-router-dom";

const NotFond = () => {
    const navigate = useNavigate();
    return (
        <Result
            status="404"
            title="404"
            subTitle="很抱歉，没有找到您想要的页面资源"
            extra={<Button type="primary" onClick={() => {
                navigate("/login")
                localStorage.removeItem("token")
                message.success("跳转成功")
            }}>返回登录页面</Button>}
        />
    )
};
export default NotFond;